//
//  GZCurrentUser.swift
//  GZMarathon
//
//  Created by apple on 2021/10/19.
//

import UIKit

class GZCurrentUser: NSObject {

    var currentUser: GZUserData?
    
    static let shared = GZCurrentUser()
       
    // Make sure the class has only one instance
    // Should not init or copy outside
    private override init() {}
    
    override func copy() -> Any {
        return self // SingletonClass.shared
    }
    
    override func mutableCopy() -> Any {
        return self // SingletonClass.shared
    }

    // Optional
    func reset() {
        currentUser = nil
        // Reset all properties to default value
    }
}
